//点检

import { get, post, put, deletes } from '@/server/request.js';
import { baseApi, baseApp } from '@/server/base.js';

export function workList(params) {
    return get(`${baseApi}/api/machine/checks/tasks?user=${params.user}`, params);
}

export function taskList(params) {
    return get(`${baseApi}/api/machine/checks/list/${params.taskId}`);
}

export function taskSave(params){
    return post(`${baseApi}/api/machine/checks/tasks/submit/${params.id}`,params);
}

export function taskCache(params){
    return post(`${baseApi}/api/machine/checks/tasks/staff/${params.id}`,params);
}


export const uploadPath = `${baseApi}/api/machine/checks/upload`;
